<template>
  <div class="examination-page">
    <!-- 顶部导航栏 -->
    <BaseHeader :navs="navs" :activeNav="activeNav" @nav-change="activeNav = $event" />

    <!-- 考证指南部分 -->
    <div class="full-width-bg banner-bg">
      <div class="banner-section">
        <el-carousel height="500px">
          <el-carousel-item v-for="item in bannerList" :key="item.id">
            <div class="banner-content" :style="{ backgroundImage: `url(${item.img})` }">
              <div class="banner-text">
                <h1>{{ item.title }}</h1>
                <p>{{ item.desc }}</p>
              </div>
            </div>
          </el-carousel-item>
        </el-carousel>
      </div>
    </div>
    <div class="centerfull">
      <div class="breadcrumb">
        <span>首页</span>
        <span class="separator">></span>

        <span class="current">考试指南</span>
      </div>
    </div>
    <!-- 开班条件 -->
    <section class="conditions-section">
      <h2>开班条件</h2>
      <div class="conditions-grid">
        <div class="condition-card" v-for="(condition, index) in conditions" :key="index">
          <img :src="condition.image" :alt="condition.title" />
          <h3>{{ condition.title }}</h3>
        </div>
      </div>
    </section>
    <div class="centerfull">
      <div class="exam-title-box">
        <div class="exam-title">
          <img src="@/assets/index/ll.png" alt="考试指南" />【理论】
        </div>
        相关民航无人机法规、无人机概述、系統组成及介绍、飞行原理与飞行性能、气象、空域与起降场、任务规划、旋翼无人机原理构造启动布局、无人机驾驶员飞行手册、空域申请与空管通讯、航线规划、系統检童桯序、正常飞行裡序指挥、应急飞6行桯序指择、任务执行指挥等。
      </div>
      <div class="exam-title-box">
        <div class="exam-title">
          <img src="@/assets/index/ll.png" alt="考试指南" />【实操】
        </div>
        模拟飞行训练、无人机装机调试实践、无人机遥控装置设置、地面站航点航线规划应急链路通讯、起飞与降落训练、四面悬停、模拟航线飞行、十字航线，矩形航线，圆周航线，定点转晋训练、协调转弯训练、水平8字，水平360度，发动机失效自旋降落处置、无人飞行景的维修及保养、充电设备和电池的使用、无人机系統安全运行管理、应急处置练习。
      </div>
    </div>
    <!-- 培训课程表格 -->

    <CourseTable />
    <!-- 培训流程图 -->
    <ProcessTimeline />

    <!-- 航飞无人机培训基地 -->
    <section class="training-base">
      <h2>航飞无人机培训基地</h2>
      <p>配备了先进的无人机设备和专业的教学设施</p>
      <div class="base-cards">
        <div class="base-card-box">
          <div class="base-card">
            <img src="@/assets/index/ll.png" alt="航飞无人机培训基地" />
            <p>能飞广西玉林分校</p>
          </div>
          <div class="base-card-address">
            地址：广西壮族自治区玉林市玉州区体育中心无人⋯
          </div>
          <div class="base-card-tel">电话：400-778-1788</div>
        </div>
        <div class="base-card-box">
          <div class="base-card">
            <img src="@/assets/index/ll.png" alt="航飞无人机培训基地" />
            <p>能飞宁夏银川分校</p>
          </div>
          <div class="base-card-address">
            地址：宁夏银川市银永快速通道与福银路交会处东⋯
          </div>
          <div class="base-card-tel">电话：400-778-1788</div>
        </div>
        <div class="base-card-box">
          <div class="base-card">
            <img src="@/assets/index/ll.png" alt="航飞无人机培训基地" />
            <p>能飞山东烟台分校</p>
          </div>
          <div class="base-card-address">
            地址：山东省烟台市高新区滨海中路2006号中国农…
          </div>
          <div class="base-card-tel">电话：400-778-1788</div>
        </div>
        <div class="base-card-box">
          <div class="base-card">
            <img src="@/assets/index/ll.png" alt="航飞无人机培训基地" />
            <p>能飞陕西西安分校</p>
          </div>
          <div class="base-card-address">
            地址：陕西省西安市人民体育场8号看台二楼（革命…
          </div>
          <div class="base-card-tel">电话：400-778-1788</div>
        </div>
        <div class="base-card-box">
          <div class="base-card">
            <img src="@/assets/index/ll.png" alt="航飞无人机培训基地" />
            <p>能长佛山总部</p>
          </div>
          <div class="base-card-address">
            地址：佛山市南海区狮山镇大学城广工大研究院内
          </div>
          <div class="base-card-tel">电话：400-778-1788</div>
        </div>
        <div class="base-card-box">
          <div class="base-card">
            <img src="@/assets/index/ll.png" alt="航飞无人机培训基地" />
            <p>能飞广西玉林分校</p>
          </div>
          <div class="base-card-address">
            地址：广西壮族自治区玉林市玉州区体育中心无人⋯
          </div>
          <div class="base-card-tel">电话：400-778-1788</div>
        </div>
        <div class="base-card-box">
          <div class="base-card">
            <img src="@/assets/index/ll.png" alt="航飞无人机培训基地" />
            <p>能青海西宁分校</p>
          </div>
          <div class="base-card-address">
            地址：青海省西宁市湟中县和平路文化巷文化家园…
          </div>
          <div class="base-card-tel">电话：400-778-1788</div>
        </div>
        <div class="base-card-box">
          <div class="base-card">
            <img src="@/assets/index/ll.png" alt="航飞无人机培训基地" />
            <p>能飞湖北武汉分校</p>
          </div>
          <div class="base-card-address">
            地址：武汉市江夏区金龙大街赛鹰科技园一栋三单.
          </div>
          <div class="base-card-tel">电话：400-778-1788</div>
        </div>
      </div>
    </section>

    <!-- 教学环境 -->
    <section class="teaching-environment">
      <h2>航飞无人机教学环境</h2>
      <p>校园环境优雅，训练场即考场</p>
      <div class="environment-grid-box">
        <div class="environment-grid">
          <img src="@/assets/index/eximg.png" alt="航飞无人机教学环境" />
          <p>公司环境</p>
        </div>
        <div class="environment-grid">
          <img src="@/assets/index/ex2.png" alt="航飞无人机教学环境" />
          <p>课室环境</p>
        </div>
        <div class="environment-grid">
          <img src="@/assets/index/ex3.png" alt="航飞无人机教学环境" />
          <p>公司展厅</p>
        </div>
        <div class="environment-grid">
          <img src="@/assets/index/eximg.png" alt="航飞无人机教学环境" />
          <p>实操场地</p>
        </div>
        <div class="environment-grid">
          <img src="@/assets/index/ex2.png" alt="航飞无人机教学环境" />
          <p>饭堂环境</p>
        </div>
        <div class="environment-grid">
          <img src="@/assets/index/ex3.png" alt="航飞无人机教学环境" />
          <p>宿舍环境</p>
        </div>
      </div>
    </section>

    <!-- 页脚 -->
    <BaseFooter />
    <RightContact />
  </div>
</template>

<script>
import BaseHeader from "@/components/baseHeader.vue";
import BaseFooter from "@/components/baseFooter.vue";
import RightContact from "@/components/rightContact.vue";
import CourseTable from "./CourseTable.vue";
import ProcessTimeline from "./ProcessTimeline.vue";

export default {
  name: "examination",
  components: {
    BaseHeader,
    BaseFooter,
    RightContact,
    CourseTable,
    ProcessTimeline,
  },
  data() {
    return {
      navs: ["首页", "新闻", "题库", "资料", "产教课程"],
      activeNav: "",
      bannerList: [
        {
          id: 1,
          title: "考试指南",
          desc: "明确考试的目的和意义，了解考试将如何评估",
          img: require("@/assets/index/kao.png"),
        },
      ],
      conditions: [
        {
          title: "专业教员为你详细讲解理论，确保理论考试顺利通过",
          image: require("@/assets/index/condition1.png"),
        },
        {
          title: "考试达标上机实操培训时间充足",
          image: require("@/assets/index/condition2.png"),
        },
        {
          title: "小班制专业无人机培训学员保证培训合格",
          image: require("@/assets/index/condition3.png"),
        },
        {
          title: "航拍测绘无人机学习培训人员",
          image: require("@/assets/index/condition4.png"),
        },
      ],
    };
  },
};
</script>
<style>
.el-carousel__indicators {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  gap: 24px;
}

.el-carousel__indicators {
  display: flex !important;
  justify-content: center;
  align-items: center;
  margin-top: 32px;
  gap: 24px;
  position: absolute;
  bottom: 145px;
  left: 416px;
}

.el-carousel__indicator {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.el-carousel__indicator {
  width: auto !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
}

.el-carousel__button {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #e0e3e9;
  transition: background 0.3s;
  margin: 0 4px;
  opacity: 1 !important;
}

.el-carousel__button {
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: #e0e3e9;
  transition: background 0.3s;
  margin: 0 4px;
  opacity: 1 !important;
}

.el-carousel__indicator.is-active .el-carousel__button {
  background: #2176ff;
}

.el-carousel__indicator.is-active .el-carousel__button {
  background: #2176ff;
}
</style>
<style scoped>
.examination-page {
  width: 100%;
}

.breadcrumb {
  margin: 20px 0;
  font-size: 14px;
  color: #666;
  text-align: left;

  span {
    color: #909399;

    &.separator {
      margin: 0 8px;
      color: #909399;
    }

    &.current {
      color: #1664ff;
    }
  }
}

.banner-section {}

.banner-content {
  height: 100%;

  background-size: cover;
  background-position: center;
  display: flex;
}

.banner-text {
  width: 1200px;
  margin: 0 auto;
  padding-top: 120px;
  text-align: left;
}

.banner-text h1 {
  font-size: 42px;
  font-weight: bold;
  color: #333;
}

.banner-text p {
  font-size: 16px;
  color: #41464f;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: #fff;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.guide-section {
  padding: 100px 0;
  background: #f8f9fa;
  text-align: center;
}

.guide-content h1 {
  font-size: 36px;
  margin-bottom: 20px;
}

.conditions-section {
  padding: 30px 0;

  h2 {
    font-weight: 600;
    font-size: 36px;
    color: #12192d;
    margin: 0;
  }

  h3 {
    font-weight: 500;
    font-size: 18px;
    color: #12192d;
  }
}

.conditions-grid {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-top: 40px;
}

.condition-card {
  text-align: center;
  padding: 20px;
  border-radius: 8px;
}

.condition-card img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.course-table {
  padding: 60px 0;
  background: #f8f9fa;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 30px;
}

th,
td {
  padding: 15px;
  text-align: left;
  border: 1px solid #ddd;
}

th {
  background: #4169e1;
  color: white;
}

.training-process {
  padding: 60px 0;
}

.training-base {
  padding: 60px 0;
  /* background: #f8f9fa; */
}

.base-cards {
  width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;

  .base-card-box {
    width: 387px;
    height: 139px;
    background: #ffffff;
    box-shadow: 0px 4px 60px 0px rgba(0, 69, 207, 0.08);
    border-radius: 12px;
    border: 1px solid #eaedf1;
    padding: 20px;
    text-align: left;
    margin-bottom: 20px;

    .base-card {
      display: flex;
      align-items: center;
      font-weight: 600;
      font-size: 18px;
      color: #020814;
      line-height: 0;

      img {
        width: 32px;
        height: 32px;
        margin-right: 12px;
      }
    }

    .base-card-address {
      font-weight: 400;
      font-size: 14px;
      color: #666666;
      margin-top: 15px;
    }

    .base-card-tel {
      font-weight: 400;
      font-size: 14px;
      color: #666666;
      margin-top: 10px;
    }
  }
}

.teaching-environment {
  padding: 60px 0;
  background: #f5f7fd;
}

.section-subtitle {
  text-align: center;
  font-size: 14px;
  color: #909399;
  margin-bottom: 80px;
  line-height: 1.4;
}

.environment-grid-box {
  width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.environment-grid {
  width: 386px;
  height: 296px;
  background: #fafbff;
  box-shadow: 0px 4px 60px 0px rgba(0, 69, 207, 0.08);
  border-radius: 12px;
  border: 1px solid #ffffff;
  padding: 20px;

  img {
    width: 100%;
    height: 217px;
  }

  p {
    font-weight: 400;
    font-size: 20px;
    color: #12192d;
    margin: 10px 0;
  }
}

.centerfull {
  width: 1200px;
  margin: 0 auto 80px;
  display: flex;
  justify-content: space-between;

  .exam-title-box {
    width: 590px;
    height: 189px;
    background: #ffffff;
    box-shadow: 0px 4px 60px 0px rgba(0, 69, 207, 0.08);
    border-radius: 12px;
    border: 1px solid #eaedf1;
    font-family: PingFangSC, PingFang SC;
    font-weight: 400;
    font-size: 14px;
    color: #41464f;
    line-height: 20px;
    text-align: justify;
    padding: 20px;

    .exam-title {
      display: flex;
      align-items: center;
      margin-bottom: 20px;

      img {
        width: 32px;
        height: 32px;
        margin-right: 5px;
      }
    }
  }
}
</style>
